<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>预览通知</title>
    <link href="layui/css/layui.css" rel="stylesheet">
    <link href="static/css/style.css" rel="stylesheet">
    <script src="static/js/jquery.min.js"></script>
    <script src="static/js/jquery.cookie.js"></script>
    <script src="layui/layui.js"></script>
    <script src="static/js/base.js"></script>
    <script src="static/js/ax.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="static/js/html5.js"></script>
    <script src="static/js/respond.js"></script>
    <![endif]-->

</head>
<body class="bg_w">
<div class="noticeTitle"></div>
<div class="noticeContent" ></div>
<div class="noticeTime" style=""></div>
<script>
    var $;
    layui.use(['layer'], function() {
        $ = layui.$;
        var layer=layui.layer;

        var initPage = function(dataId) {
            ax.get({
                url:schoolWebUrl +  '/api/aos/notice/preview',
                data: {dataId:dataId},
                success: function (res) {
                    if (res.code == 0) {
                        var noticeData = res.data;
                        $(".noticeTitle").text(noticeData.noticeTitle);
                        $(".noticeContent").html(noticeData.noticeContent);
                        $(".noticeTime").text(noticeData.updateTime);
                    } else {
                        layer.msg(res.message);
                    }
                }

            });
        };

        var dataId = getQueryString("id");
        initPage(dataId);
    });
</script>
</body>
</html>